<?php

$server = new Swoole\Server('0.0.0.0','8080');

$server->on('Connect',function($server,$fd){
	echo "Client:Connect.\n";
});

$server->on('Receive',function($server,$fd,$form_id,$data){
	$server->send($fd,"Server:".$data);
});

$server->on('Close',function($server,$fd){
	echo "Client:Close.\n";
});

$server->start();
